#基础镜像，如果本地仓库没有，会从远程仓库拉取
FROM openjdk:8-jdk-alpine
RUN mkdir -p /apps/jar
ADD ./app.jar /apps/jar/app.jar
#指定容器启动时要执行的命令
ENTRYPOINT ["nohup","java","-jar","/apps/jar/app.jar","&"]


# docker build -f app.jar -t openjdk/1.8/jar/app .